package com.yykj.drup.server.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zengg
 * @since 2022-03-10
 */
@Getter
@Setter
@TableName("category")
@ApiModel(value = "Category对象", description = "")
public class Category{

    @ApiModelProperty("药品分类系统主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("第三方分类标识ID ，二级分类时必须")
    @TableField("category_id")
    private String categoryId;

    @ApiModelProperty(value = "一级分类标识ID  0：一级分类", hidden = true)
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty("药品分类名称")
    @TableField("category_name")
    private String categoryName;

    @ApiModelProperty("药品分类所属类型 1：西药  2：中药")
    @TableField("category_type")
    private Integer categoryType;

    @ApiModelProperty("二级分类用图")
    @TableField("category_image")
    private String categoryImage;

    @ApiModelProperty(value = "是否删除0：否  1：是",hidden = true)
    @TableField("is_deleted")
    private Integer isDeleted;


}
